<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
	<link href="<%=request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript">
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>

  </head>
  
  <body style="background:url(<%=request.getContextPath() %>/images/topbg.gif) repeat-x;">
<c:if test="${empty currentUser}">
<jsp:include page="404.jsp"/>
</c:if>
<c:if test="${!empty currentUser}">
    <div class="topleft">
    <a href="main.jsp" target="_parent"><img src="<%=request.getContextPath() %>/images/logo.png" title="系统首页" /></a>
    </div>
        
    <ul class="nav">
    <li><a href="<%=basePath%>user/statistics" target="rightFrame" class="selected">
    <img src="<%=request.getContextPath() %>/images/icon01.png" title="工作台" /><h2>工作台</h2></a></li>
    </ul>
            
    <div class="topright">    
    <ul>
    <li><span><img src="<%=request.getContextPath() %>/images/help.png" title="帮助"  class="helpimg"/></span><a href="">帮助</a></li>
    <li><a href="">关于</a></li>
    <li><a href="<%=basePath%>user/toLogin" target="_parent">退出</a></li>
    </ul>
     
    <div class="user">
    <c:if test="${empty currentUser}">
   <span>请登录</span>
	</c:if>
	<c:if test="${!empty currentUser}">
    <span>${currentUser.reguser}</span>
    </c:if>
    </div>    
    
    </div>
</c:if>
  </body>
</html>
